echo "----------------开始准备环境----------------"
yarn
echo "----------------环境准备完成----------------"

echo "----------------开始编译----------------"
yarn build:h5
echo "----------------编译完成----------------"

echo "---------------复制包到指定目录--------------"
cp -r /root/frontend/dinner-pilot/dist/build/h5 /usr/share/nginx/dinner_pilot_html
echo "---------------复制完成---------------------"

echo "---------------重启nginx---------------"
systemctl restart nginx
echo "---------------重启完成---------------"